<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>数据分析</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
          name='viewport'/>
    <link rel="stylesheet" href="/assets/css/bootstrap.min.css">
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
    <link rel="stylesheet" href="/assets/css/ready.css">
    <link rel="stylesheet" href="/assets/css/demo.css">
    <link rel="stylesheet" href="/assets/css/mystyle.css">
</head>
<body>
<div class="wrapper">
    <div th:replace="~{index::topbar}"></div>
    <div th:replace="~{index::sidebar(activeUri='/bridge/overview')}"></div>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title" th:text="${bridge.Name}+'数据分析'">洪山大桥</h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <div class="card-text text-left">
                                    请选择时间段
                                </div>
                            </div>
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-9">
                                        <div class="input-group">
                                            <input type="date" class="form-control" id="startime">
                                            <label>----</label>
                                            <input type="date" class="form-control" id="endtime">
                                            <div class="input-group-append">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <button class="btn btn-block btn-round" id="analysis">分析</button>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-1 col-md-offset-2">
                                        <button class="btn btn-success">下载数据（生成后显示）</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card"  style="height: 700px">
                            <div class="card-header">
                                <div class="card-title text-center">传感数据总览</div>
                            </div>
                            <div class="card-body" id="SenorPieChart">
                                <div class="text-center"><h1>暂无数据</h1></div>
                            </div>
                            <!--<div class="row">-->
                                <!--<div class="col-md-6">-->
                                    <!--<div class="card" style="height: 350px">-->
                                        <!--<div class="card-header">-->
                                            <!--<p class="card-title">-->
                                                <!--统计图-->
                                            <!--</p>-->
                                        <!--</div>-->
                                        <!--<div class="card-body">-->
                                            <!--<div id="chart1" style="height: 300px;width: 480px;"></div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!--<div class="col-md-6">-->
                                    <!--<div class="card" style="height: 350px">-->
                                        <!--<div class="card-header">-->
                                            <!--<p class="card-title">-->
                                                <!--统计图-->
                                            <!--</p>-->
                                        <!--</div>-->
                                        <!--<div class="card-body">-->
                                            <!--<div id="chart2" style="height: 300px;width: 480px;"></div>-->
                                        <!--</div>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </div>
                        <div class="card"  style="height:500px" >
                            <div class="card-header">
                                <div class="card-title text-center">异常数据分析（点击对应区域查看数据）</div>
                            </div>
                            <div class="card-body" id="showWarning">
                                <div class="text-center"><h1>暂无数据</h1></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div th:replace="~{index::footer}"></div>
    </div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="modalUpdate" tabindex="-1" role="dialog" aria-labelledby="modalUpdatePro"
     aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h6 class="modal-title"><i class="la la-frown-o"></i> Under Development</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body text-center">
                <p>Currently the pro version of the <b>Ready Dashboard</b> Bootstrap is in progress development</p>
                <p>
                    <b>We'll let you know when it's done</b></p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
<!--ShowDataModal-->
<div class="modal fade" tabindex="-1" role="dialog" id="ShowData" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">异常数据</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close" id="closeModal"><span aria-hidden="true">&times;</span></button>
            </div>
            <div class="modal-body text-center">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th scope="col" class="text-md-center">ID</th>
                        <th scope="col" class="text-md-center">数值</th>
                        <th scope="col" class="text-md-center">单位编号</th>
                        <th scope="col" class="text-md-center">一级阈值</th>
                        <th scope="col" class="text-md-center">二级阈值</th>
                        <th scope="col" class="text-md-center">时间</th>
                    </tr>
                    </thead>
                    <tbody id="modalWarningData">
                        <tr>
                            <td class="text-md-center"></td>
                            <td class="text-md-center"></td>
                            <td class="text-md-center"></td>
                            <td class="text-md-center"></td>
                            <td class="text-md-center"></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
<script src="/assets/js/core/jquery.3.2.1.min.js"></script>
<script src="/assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
<script src="/assets/js/core/popper.min.js"></script>
<script src="/assets/js/core/bootstrap.min.js"></script>
<script src="/assets/js/plugin/chartist/chartist.min.js"></script>
<script src="/assets/js/plugin/chartist/plugin/chartist-plugin-tooltip.min.js"></script>
<script src="/assets/js/plugin/bootstrap-notify/bootstrap-notify.min.js"></script>
<script src="/assets/js/plugin/bootstrap-toggle/bootstrap-toggle.min.js"></script>
<script src="/assets/js/plugin/jquery-mapael/jquery.mapael.min.js"></script>
<script src="/assets/js/plugin/jquery-mapael/maps/world_countries.min.js"></script>
<script src="/assets/js/plugin/chart-circle/circles.min.js"></script>
<script src="/assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
<script src="/assets/js/ready.min.js"></script>
<script src="/assets/js/demo.js"></script>
<script src="/assets/js/echarts.min.js"></script>
<script src="/assets/js/showallreport.js"></script>
</html>